#include "closewindow.h"

CloseWindow::CloseWindow(QWidget *parent) : QWidget(parent)
{
    initWindow();
}

void CloseWindow::initWindow()
{
    gBox = new QGroupBox("关闭操作:....");
    gBoxLayout = new QVBoxLayout(gBox);//groupbox的布局

    gBoxLayout1 = new QHBoxLayout(gBox);
    rBtn1 = new QRadioButton("退出");
    rBtn2 = new QRadioButton("最小化");
    gBoxLayout1->addWidget(rBtn1);
    gBoxLayout1->addWidget(rBtn2);

    gBoxLayout2 = new QHBoxLayout(gBox);
    cBox1 = new QCheckBox("下次不再提醒");
    btn1 = new QPushButton("确认");
    gBoxLayout2->addWidget(cBox1);
    gBoxLayout2->addWidget(btn1);

    gBoxLayout->addLayout(gBoxLayout1);
    gBoxLayout->addLayout(gBoxLayout2);




    mainLayout = new QVBoxLayout(this);//窗口的布局
    mainLayout->addWidget(gBox);



}
